package com.neuedu.controller;

import com.neuedu.entity.PmsConsultation;
import com.neuedu.service.PmsConsultationService;
import com.neuedu.vo.ResultJson;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 就诊记录表 前端控制器
 * </p>
 *
 * @author 王禹
 * @since 2025-08-18
 */
@RestController
@RequestMapping("/pmsConsultation")
public class PmsConsultationController {
    @Resource
    PmsConsultationService pmsConsultationService;
    @PostMapping("/add")
    ResultJson<Boolean> add(PmsConsultation pmsConsultation, Long open_id, Integer total) {
        return ResultJson.success(pmsConsultationService.add(pmsConsultation, open_id, total), "保存完成");
    }
}
